using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class FakeLines : MonoBehaviour

{
    public List<Rect> oldLines;
    public List<Rect> newLines;
 
 	
     public void Partition (BSPNode Split)
        {
		endX = xOffset+width;
		endY = yOffset + height;
        endxpoint = xOffset + width;
		endypoint = yOffset + height;
        oldLines = new List<Rect>();
        newLines = new List<Rect>();
		Rect temp = new Rect();
		
           BSPNode rootNode = new BSPNode(0.0f, 0.0f, 1.0f, 1.0f);
           rootNode.Splits();
           return rootNode;	
			
		 newLines.Add(temp);
		}

    public void Split()
    {
        oldLines.AddRange(newLines);
        newLines = new List<Rect>();
        for (int i = 0; i < oldLines.Count * 2; i++)
        {
        
		endxpoint = xOffset + width;
		endypoint = yOffset + height;
        oldLines = new List<Rect>();
        newLines = new List<Rect>();
		Rect temp = new Rect();
		
           BSPNode rootNode = new BSPNode(0.0f, 0.0f, 1.0f, 1.0f);
           rootNode.Splits();
           return rootNode;	
						
            newLines.Add(temp);
        }
    }
	}





